package com.zx.mes.hyl.feign.fallback;

import com.zx.mes.hyl.entity.SysUser;
import com.zx.mes.hyl.feign.SysUserService;

/**
 * 接口调用失败时做  快速失败处理，防止雪崩
 * @author huayunlong
 * @date 2018-7-10
 */
public class SysUserServiceFallbackImpl implements SysUserService{
    @Override
    public SysUser loadUserByUsername(String name) {
        SysUser sysUser = new SysUser();
        sysUser.setName("fallback");
        return sysUser;
    }
}
